<?php
/*  
  Copyright (c) 2010-02 SongCMS 
  SongCMS All Rights Reserved. 
  Support:www.SongCMS.com
  QQ:544255858   19951025
  Author:Song  Version:3.17
  Date:2010-08-12 09:28:32
*/
$news = new news();
$news -> Lang = $Lang;
$news -> Ltext = $Html['page'];
$SC -> register -> templateObject("news",$news);
$article = new article();
$article -> Lang = $Lang;
$article -> Ltext = $Html['page'];
$SC -> register -> templateObject("article",$article);
$product = new product();
$product -> Lang = $Lang;
$product -> Ltext = $Html['page'];
$SC -> register -> templateObject("product",$product);
$SC -> register -> templateObject("sdb",$sdb);
$db = new db();
if(empty($sGET['c'])){ 
	$pt['cName'] = $pt['RootName'] = $pt['Sort'] = $Html['AllNews']; 
}else{
	$pt['Sort'] = ArticleName(trim($sGET['c']),' >> ',1);
	$cCname = explode('|',$sGET['c']);
	$pt['cName'] = ArticleName($cCname[count($cCname)-1]);
	$pt['RootName'] = ArticleName($cCname[0]);
}
if(!empty($sGET['w'])){
	$news -> isSelect = trim($sGET['w']);
	$Html['swd'] = $sGET['w'];
	$SC -> assign("Html",$Html);
	$pt['cName'] = $pt['RootName'] = $pt['Sort'] = $Html['NewsSearch']; 
}
$SC -> assign('pt',$pt);
unset($pt);
include_once($CodeList . 'top.php');
include_once($CodeList . 'bottom.php');
$SC -> display($TemFile,$GetUrlPar);
?>
